<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<!--/* 如果列表有内容, 则循环 */-->
<div class="goods_con_box" th:if="${page.list.size() gt 0}" th:each="item:${page.list}">
    <div class="goods_con_box_title clearfix">
        <div class="checkbox">
            <input type="checkbox" name="" value=""/>
        </div>
        <div class="time" style="margin-right: 30px;" th:text="${#dates.format(item.orderTime, 'yyyy-MM-dd HH:mm:ss')}"></div>
        <div class="time">
            订单号：[[${item.no}]]
        </div>
        <div class="del">
            <i class="iconfont icon-del" th:attr="data-item-id=${item.id}"></i>
        </div>
    </div>

    <div class="goods_con_box_table clearfix">
        <div class="left" th:if="${item.orderDetail.photographer ne null and item.orderDetail.scriptwriter ne null}">
            <div class="up">
                <h4>姓名：[[${item.orderDetail.photoGrapherUser.name}]]</h4>
                <p>昵称：[[${item.orderDetail.photoGrapherUser.nickname}]]</p>
            </div>
            <div class="down">
                <h4>姓名：[[${item.orderDetail.scriptWriterUser.name}]]</h4>
                <p>昵称：[[${item.orderDetail.scriptWriterUser.nickname}]]</p>
            </div>
        </div>
        <div class="left" th:if="${item.orderDetail.photographer eq null and item.orderDetail.scriptwriter eq null}">
            <div class="up">
                <h4>摄影师待分配</h4>
            </div>
            <div class="down">
                <h4>编剧待分配</h4>
            </div>
        </div>
        <div class="center" th:text="${'总金额：' + #numbers.formatDecimal(item.totalPrice,1,2)}">
        </div>
        <div class="center_1" cus:dict="order-status,${item.status}"></div>
        <div class="right">
            <a th:href="@{'/order/get/' + ${item.id}}" target="_blank">订单详情</a>
            <a th:if="${item.status eq 2}" th:href="@{'/order/pay-ready/' + ${item.id}}" target="_blank">去支付</a>
            <a th:if="${item.status eq 1 and item.statusStep eq 0 and item.orderDetail.photographer ne null and item.orderDetail.scriptwriter ne null}"
               th:href="@{'/evaluate/ready?targetType=3&target=' + ${item.id}}" target="_blank">去评价</a>
        </div>
    </div>
</div>

<!--/* 显示无内容 */-->
<div th:class="${page.list.size() ne 0 ? 'goods_con_box hidden' : 'goods_con_box'}">
    <div class="goods_con_box_null_tip">
        暂时没有订单，快去选购喜爱的短视频吧！
    </div>
</div>